package me.zhengjie.modules.fileupload.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.modules.fileupload.domain.ElectronicMaterialFileDetailVO;
import me.zhengjie.modules.fileupload.domain.ElectronicMaterialFileVO;
import me.zhengjie.utils.PageResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * 电子材料服务接口
 */
public interface ElectronicMaterialService {


    PageResult<ElectronicMaterialFileDetailVO> queryList(Map param, Page<Object> page) throws IOException;

    void deleteFile(String id) throws IOException;

    ElectronicMaterialFileVO uploadFile(String personId, String businessType, String name, String id,
                                        MultipartFile file) throws IOException;

}
